<?php
use \Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('install', "InstallController@index")->name('install.index');
Route::get('install/step1', "InstallController@step1")->name('install.step1');
Route::get('install/step2', "InstallController@step2")->name('install.step2');;
Route::post('install/step2', "InstallController@storeStep2")->name('install.store-step2');;
Route::get('install/step3', "InstallController@step3")->name('install.step3');;


Route::any('wechat', 'WeChatController@checkSignature');

Route::group([], function () {
    Route::get('live/temp_show', 'LiveController@tempShow');
    Route::get('user/profile', 'UsersController@profile');
});

// 微信浏览器
Route::middleware(['check.browser', 'wechat.oauth'])->group(function () {
    Route::get('live/show', 'LiveController@show');
});
